import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import {h} from 'vue';
import {Switch} from 'ant-design-vue';

export const columns: BasicColumn[] = [
        {
            title: '用户id',
            dataIndex: 'userId',
            width: 200,
        },
        {
            title: '用户姓名',
            dataIndex: 'userName',
            width: 200,
        },
        {
            title: '证件照',
            dataIndex: 'identityImg',
            width: 200,
        },
        {
            title: '证件类型（1身份证，2护照,3港澳通行证，4台胞证）',
            dataIndex: 'identityType',
            width: 200,
        },
        {
            title: '证件号码',
            dataIndex: 'identityNo',
            width: 200,
        },
        {
            title: '手机号',
            dataIndex: 'mobile',
            width: 200,
        },
        {
            title: '紧急电话',
            dataIndex: 'telePhone',
            width: 200,
        },
        {
            title: '国籍',
            dataIndex: 'nationality',
            width: 200,
        },
        {
            title: '签发地',
            dataIndex: 'issueAt',
            width: 200,
        },
        {
            title: '有效期',
            dataIndex: 'expiryDate',
            width: 200,
        },
        {
            title: '备注',
            dataIndex: 'remark',
            width: 200,
        },
        {
            title: '性别',
            dataIndex: 'sex',
            width: 200,
        },
        {
            title: '会员年龄',
            dataIndex: 'age',
            width: 200,
        },
        {
            title: '出生日期',
            dataIndex: 'birthDate',
            width: 200,
        },
        {
            title: '英文名',
            dataIndex: 'firstName',
            width: 200,
        },
        {
            title: '英文姓',
            dataIndex: 'lastName',
            width: 200,
        },
        {
            title: '是否本人（1是，2否）',
            dataIndex: 'isOneself',
            width: 200,
        },
        {
            title: '初次认证（1是初次认证,2非初次认证）',
            dataIndex: 'isFirstAuth',
            width: 200,
        },
        {
            title: '要客卡公司名称',
            dataIndex: 'companyName',
            width: 200,
        },
        {
            title: '要客卡不显示在常用旅客里（1展示，2不展示）',
            dataIndex: 'companyAddress',
            width: 200,
        },
        {
            title: '',
            dataIndex: 'isShow',
            width: 200,
        },
        {
            title: '',
            dataIndex: 'dataType',
            width: 200,
        },
        {
            title: '是否删除',
            dataIndex: 'deleted',
            width: 200,
        },
        {
            title: '更新人',
            dataIndex: 'updateUser',
            width: 200,
        },
        {
            title: '更新时间',
            dataIndex: 'updateTime',
            width: 200,
        },
        {
            title: '创建人',
            dataIndex: 'createUser',
            width: 200,
        },
        {
            title: '创建时间',
            dataIndex: 'createTime',
            width: 200,
        },
];

export const searchFormSchema: FormSchema[] = [
];

export const formSchema: FormSchema[] = [
        {
            label: '用户id',
            field: 'userId',
            component: 'Input',
            required: true,
        },
        {
            label: '用户姓名',
            field: 'userName',
            component: 'Input',
            required: true,
        },
        {
            label: '证件照',
            field: 'identityImg',
            component: 'Input',
            required: true,
        },
        {
            label: '证件类型（1身份证，2护照,3港澳通行证，4台胞证）',
            field: 'identityType',
            component: 'Input',
            required: true,
        },
        {
            label: '证件号码',
            field: 'identityNo',
            component: 'Input',
            required: true,
        },
        {
            label: '手机号',
            field: 'mobile',
            component: 'Input',
            required: true,
        },
        {
            label: '紧急电话',
            field: 'telePhone',
            component: 'Input',
            required: true,
        },
        {
            label: '国籍',
            field: 'nationality',
            component: 'Input',
            required: true,
        },
        {
            label: '签发地',
            field: 'issueAt',
            component: 'Input',
            required: true,
        },
        {
            label: '有效期',
            field: 'expiryDate',
            component: 'Input',
            required: true,
        },
        {
            label: '备注',
            field: 'remark',
            component: 'Input',
            required: true,
        },
        {
            label: '性别',
            field: 'sex',
            component: 'Input',
            required: true,
        },
        {
            label: '会员年龄',
            field: 'age',
            component: 'Input',
            required: true,
        },
        {
            label: '出生日期',
            field: 'birthDate',
            component: 'Input',
            required: true,
        },
        {
            label: '英文名',
            field: 'firstName',
            component: 'Input',
            required: true,
        },
        {
            label: '英文姓',
            field: 'lastName',
            component: 'Input',
            required: true,
        },
        {
            label: '是否本人（1是，2否）',
            field: 'isOneself',
            component: 'Input',
            required: true,
        },
        {
            label: '初次认证（1是初次认证,2非初次认证）',
            field: 'isFirstAuth',
            component: 'Input',
            required: true,
        },
        {
            label: '要客卡公司名称',
            field: 'companyName',
            component: 'Input',
            required: true,
        },
        {
            label: '要客卡不显示在常用旅客里（1展示，2不展示）',
            field: 'companyAddress',
            component: 'Input',
            required: true,
        },
        {
            label: '',
            field: 'isShow',
            component: 'Input',
            required: true,
        },
        {
            label: '',
            field: 'dataType',
            component: 'Input',
            required: true,
        },
        {
            label: '是否删除',
            field: 'deleted',
            component: 'Input',
            required: true,
        },
        {
            label: '更新人',
            field: 'updateUser',
            component: 'Input',
            required: true,
        },
        {
            label: '更新时间',
            field: 'updateTime',
            component: 'Input',
            required: true,
        },
        {
            label: '创建人',
            field: 'createUser',
            component: 'Input',
            required: true,
        },
        {
            label: '创建时间',
            field: 'createTime',
            component: 'Input',
            required: true,
        },
];
